{% extends 'base.html' %}
{% block top %}
    <title>查询</title>
    {{ super() }}
{% endblock %}

{% block content %}
<body>

	<div class="container" style="">
		<div class="main" style="margin-top:20px">
		   <div class="row">
		   		<div class="list_item col-sm-push-3" style="background-color:#fff">
		   			<p class="item_title">搜索结果</p>
		   			<ul class="item_detail">

                    {% if num %}
                        {% for data in datas %}
		   				<li class="row">
		   					<div class="col-sm-9"><a href="/v1.0/detail/{% if data .content_id %}{{ data.content_id }}{% else %}{{ data.md5 }}{% endif %}"  id="{{ data.id}}">{{ data.title }}</a></div>
		   					<span class="col-sm-3">{{ data.update_time }}</span>
		   				</li>
                      {% endfor %}
                    {% else %}
                    <li class="row">
                        <div class="col-sm-9">抱歉～您要结果未查询到！</div>
                    </li>
                    {% endif %}
		   			</ul>
                    <div class="show_more row">
		   				<a href="/v1.0/index">返回主页</a>
		   			</div>

		   		</div>

		   </div>


		</div>
	</div>
</body>

{% endblock %}